/* 登录容器样式 */
.login-container {
    height: calc(100% - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(110, 142, 251, 0.8), rgba(167, 119, 227, 0.8)),
        url('../image/cat.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* 添加半透明遮罩增强文字可读性 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* 登录对话框样式 */
.login-dialog {
    width: 420px;
    height: 420px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-dialog:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

/* 标题样式 */
.login-dialog h3 {
    text-align: center;
    padding: 40px 0 30px;
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 行样式 */
.login-dialog .row {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-dialog .row span {
    width: 80px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

/* 输入框样式 */
#user_name, #password {
    width: 250px;
    height: 45px;
    font-size: 16px;
    line-height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    outline: none;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#user_name:focus, #password:focus {
    border-color: #6e8efb;
    box-shadow: 
        0 0 0 3px rgba(110, 142, 251, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 密码容器样式 */
.password-container {
    position: relative;
    display: inline-block;
    width: 250px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: all 0.3s;
    background: none;
    border: none;
    outline: none;
    padding: 5px;
}

.toggle-password:hover {
    color: #6e8efb;
    transform: translateY(-50%) scale(1.1);
}

/* 提交按钮样式 */
#submit {
    width: 320px;
    height: 50px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    outline: none;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    position: relative;
    overflow: hidden;
}

#submit:hover {
    background: linear-gradient(to right, #5d7de8, #9666d8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
}

#submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(110, 142, 251, 0.4);
}

#submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

#submit:hover::after {
    left: 100%;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .login-dialog {
        width: 100%;
        height: auto;
        padding: 20px 15px;
    }
    
    #submit {
        width: 100%;
    }
    
    #user_name, #password {
        width: 100%;
    }
    
    .password-container {
        width: 100%;
    }
}